package com.wsc.wisdomchina.activitity;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.wsc.wisdomchina.R;
import com.wsc.wisdomchina.activitity.baseactivity.BaseActivity;

/**
 * Created by admin on 2017/9/27.
 */

public class ExamResultActivity extends BaseActivity {
    private TextView tv_headtitle;
    private TextView mBack;
    private ImageView regist_back;
    private TextView mDesc;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.exam_result_activity_layout);
        initView();
    }

    private void initView(){
        tv_headtitle=(TextView) findViewById(R.id.tv_headtitle);
        tv_headtitle.setText("提交成功");
        tv_headtitle.requestFocus();
        tv_headtitle.setFocusable(true);
        tv_headtitle.setFocusableInTouchMode(true);
        regist_back=(ImageView) findViewById(R.id.regist_back);
        regist_back.setVisibility(View.INVISIBLE);
        mDesc = (TextView) findViewById(R.id.tv_desc);
        Intent intent = getIntent();
        if(null != intent){
         String desc = intent.getStringExtra("desc");
            if(!TextUtils.isEmpty(desc)){
                mDesc.setText(desc);
            }
        }
        regist_back.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        mBack = (TextView) findViewById(R.id.tv_back);
        mBack.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
